package com.ws.shop.service;

import java.util.List;
import java.util.Map;

import com.ws.shop.entity.Member;
import com.ws.shop.entity.Smtp;

public interface SmtpService {
	
	public Smtp loadById(int id);

	/**
	 * 获取所有系统邮箱
	 * @return
	 */
	public List<Smtp> findSmtpListAll();

	public void saveOrUpdate(Smtp smtp);

	public boolean sendMail(String subject, String templateFilePath, Map<String, Object> data, String toMail);
	
	public boolean sendResetPwdMail(Member member, int loginPasswordRecoverKey,
			String resetUrl);
	
	public void reloadSmtp();
}
